import request from '@/utils/request'

// 查询协议内容信息列表
export function listInfo(query) {
  return request({
    url: '/meanContent/listByDto',
    method: 'get',
    params: query
  })
}

// 新增协议内容信息
export function addInfo(data) {
  return request({
    url: '/meanContent/insert',
    method: 'post',
    data: data
  })
}

// 修改协议内容信息
export function updateInfo(data) {
  return request({
    url: '/meanContent/updateById',
    method: 'put',
    data: data
  })
}

// 删除协议内容信息
export function delInfo(id) {
  return request({
    url: '/meanContent/deleteById/' + id,
    method: 'delete'
  })
}